<template>
  <div :class="{'mask-layer': show}" @touchmove.prevent>
    <slot></slot>
  </div>
</template>
<script>
export default{
  props: {
    show: {
      type: Boolean,
      default: true
    }
  }
}
</script>
<style scoped>
  .mask-layer {
    display: flex;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
  }
</style>
